<h2>User Profile</h2>

<p>Name: <%=h @user.name %></p>

<p>Email: <%=h @user.email %></p>

<p>Created: <%=h @user.created_at.to_formatted_s(:long_ordinal) %></p>

<h3>Groups</h3>

<ul>
<%= render :partial =>'membership', :collection => @user.memberships %>
</ul>

<h3>Pending Invitations</h3>

<ul>
<%= render :partial =>'invitation', :collection => @invitations %>
</ul>